#ifndef _SCHOOOL_LAYER_H_
#define _SCHOOOL_LAYER_H_

#include "cocos2d.h"
#include "BasiceDucation.h"

USING_NS_CC;

class SchoolLayer : public cocos2d::Layer
{
public:
    CREATE_FUNC(SchoolLayer);
    SchoolLayer();
    ~SchoolLayer();

public:
    bool init() override;
    void onEnter() override;
    void onExit() override;
    void onTouchesBegan(const std::vector<Touch*>& touches, Event *event);

private:
    bool initUIControl(const Size& visibleSize, const Vec2& origin);
    bool initGameObject(const Size& visibleSize, const Vec2& origin);

private:
    Size _visibleSize;
    Vec2 _origin;
};

#endif // !_SCHOOOL_LAYER_H_
